<?php
// Module Definition
$module['name'] = 'Bind';
$module['description'] = 'Maintain DNS zones stored and managed via the Bind DNS Server.';

switch($action) {
	case 'register':
		break;
	case 'unregister':
		break;
	case 'hook':
		register_hook('web:lang', 'bind_add_lang');
		register_hook('web:cfg:default', 'bind_add_cfg');
		register_hook('web:server:templates', 'bind_template');
		// Server hooks
		register_hook('server:cfg:default', 'bind_add_cfg');
		register_hook('server:domain:sys', 'bind_sys');
		register_hook('server:domain:create', 'bind_domain_create');
		register_hook('server:domain:remove', 'bind_domain_remove');
		register_hook('server:domain:update', 'bind_domain_update', 1);
		register_hook('server:service:monitor', 'bind_monitor');
		register_hook('server:service:start:named', 'bind_start');
		register_hook('server:service:stop:named', 'bind_stop');
		register_hook('server:service:restart:named', 'bind_restart');
		break;
}
?>
